<template>
  <div class="normal-list">
    <div class="item" v-for="(item, i) in listData" :key="i">
      <span class="icon">
        <img :src="iconURL(item)" alt="">
      </span>
      <div class="info">{{item.info}}</div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'NormalListView',
    props: {
      listData: {
        type: Array,
        default: []
      }
    },
    methods: {
      iconURL(item) {
        return require('assets/img/profile/' + item.icon)
      }
    }
  }
</script>

<style scoped>
  .normal-list {
    color: #333;
    font-size: 15px;
    background-color: #fff;
    margin-top: 15px;
  }

  .normal-list .item {
    display: flex;
    height: 44px;
    line-height: 44px;
    border-bottom: 1px solid rgba(100, 100, 100, .1);
    margin-left: 40px;
    padding-left: 10px;
  }

  .normal-list .item:last-child {
    border-bottom: 0;
  }

  .item .icon {
    margin-top: 5px;
    margin-right: 5px;
  }

  .icon img {
    width: 20px;
    height: 20px;
  }
</style>